/*
 * @Description:
 * @Version: 2.0
 * @Autor: wangmiao
 * @Date: 2022-07-08 18:18:02
 * @LastEditors: wangmiao
 * @LastEditTime: 2022-09-02 16:12:14
 */
import { lazy } from 'react'
import ROUTES from '@/constants/routes'
const Test = lazy(() => import('@/pages/Test'))
const Home = lazy(() => import('@/pages/Home'))

interface metaProps {
  title: string
}
export interface routeProps {
  path: string
  element?: any
  meta?: metaProps
}
const routes: Array<routeProps> = [
  {
    path: ROUTES.HOME,
    element: <Home />,
  },
  {
    path: ROUTES.TEST,
    element: <Test />,
    meta: {
      title: '测试页面',
    },
  },
]
export default routes
